Skip to content

Support lower and upper scalar udf on dict arrays#22647

Open
albertlockett wants to merge 1 commit into
apache:mainfrom
albertlockett:albert/case_conversion_dict
Open

Support lower and upper scalar udf on dict arrays#22647
albertlockett wants to merge 1 commit into
apache:mainfrom
albertlockett:albert/case_conversion_dict

Conversation

@albertlockett
Copy link
Copy Markdown

@albertlockett albertlockett commented May 30, 2026

Which issue does this PR close?

(if we need a dedicated issue for this PR specifically, happy to create one)

Rationale for this change

Have the lower and upper scalar UDFs capable of converting the case of dictionary arrays.

Before this change, callers of these scalar UDFs would have to convert their columns to non-dictionary encoded arrays, where they may wish to avoid the overhead.

What changes are included in this PR?

Calls the case_conversion function recursively on dictionary values if the input is a dictionary array.

Are these changes tested?

Yes unit tests

Are there any user-facing changes?

No

@github-actions github-actions Bot added the functions Changes to functions implementation label May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant